package com.easysoft.framework.user.mapper;

import com.easysoft.framework.beans.Page;
import com.easysoft.framework.stereotype.MyBatisRepository;
import com.easysoft.framework.user.model.SysUser;
import com.easysoft.framework.user.model.SysUserQuery;
import com.easysoft.framework.user.model.SysUserView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by EasySoft on 2017/6/16.
 */
@MyBatisRepository("mapper.SysUserMapperExtd")
public interface SysUserMapperExtd extends  SysUserMapper{

    public SysUserView selectUserByUserName(String username);


    public List<SysUserView> selectUserByUserNameOrMobile(@Param("username")String username, @Param("mobile")String mobile);


    List<SysUserView> selectSysUserListByPage(@Param("page")Page page,@Param("query")SysUserQuery query);

    List<SysUserView> selectAllSysUser();

    int countUserByUserNameOrMobile(@Param("username") String username, @Param("mobile") String mobile);

    SysUserView selectSysUserViewById(@Param("id") String id);

    int selectCountSysUser(@Param("query") SysUserQuery query);
}
